﻿

<div>
    <form name="articleCategoryCreateOrEditForm" role="form" novalidate class="form-validation">
        <div class="modal-header">
            <h4 class="modal-title">
                <span ng-if="vm.articleCategory.id">编辑信息:{{vm.articleCategory.name}}</span>
                <span ng-if="!vm.articleCategory.id">新增信息</span>
            </h4>
        </div>
        <div class="modal-body">

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <select chosen search_contains="true" id="ParentId" name="ParentId" class="form-control edited ng-pristine ng-valid ng-not-empty ng-touched" ng-model="vm.articleCategory.parentId" ng-disabled="vm.disabled">
                    <option ng-repeat="x in vm.articleCategoryList" value="{{x.value}}" ng-selected="vm.articleCategory.parentId==x.value">{{x.displayText}}</option>
                </select>
                <label>所属父类</label>
                <span class="help-block">     @L("ParentId")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint mrshen2">
                <input type="text" class="form-control" name="Title" ng-class="{'edited':vm.articleCategory.title}" ng-model="vm.articleCategory.title" maxlength="100" required />
                <label>类别标题</label>
                <span class="help-block">     @L("Title")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint mrshen2">
                <input type="text" class="form-control" name="CallIndex" ng-class="{'edited':vm.articleCategory.callIndex}" ng-model="vm.articleCategory.callIndex" />
                <label>调用别名</label>
            </div>

            @*<div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="ClassList" ng-class="{'edited':vm.articleCategory.classList}" ng-model="vm.articleCategory.classList" />
                <label>类别ID列表(逗号分隔开)</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="ClassLayer" ng-class="{'edited':vm.articleCategory.classLayer}" ng-model="vm.articleCategory.classLayer" />
                <label>类别深度</label>
            </div>*@

            <div class="form-group form-md-line-input form-md-floating-label no-hint mrshen2">
                <input type="number" class="form-control" name="SortId" ng-class="{'edited':vm.articleCategory.sortId}" ng-model="vm.articleCategory.sortId" />
                <label>排序数字</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint mrshen2">
                <input type="text" class="form-control" name="LinkUrl" ng-class="{'edited':vm.articleCategory.linkUrl}" ng-model="vm.articleCategory.linkUrl" />
                <label>URL跳转地址</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="Content" ng-class="{'edited':vm.articleCategory.content}" ng-model="vm.articleCategory.content" />
                <label>备注说明</label>
            </div>


            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="SeoTitle" ng-class="{'edited':vm.articleCategory.seoTitle}" ng-model="vm.articleCategory.seoTitle" maxlength="500" />
                <label>SEO标题</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="SeoKeywords" ng-class="{'edited':vm.articleCategory.seoKeywords}" ng-model="vm.articleCategory.seoKeywords" maxlength="500" />
                <label>SEO关健字</label>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="SeoDescription" ng-class="{'edited':vm.articleCategory.seoDescription}" ng-model="vm.articleCategory.seoDescription" maxlength="500" />
                <label>SEO描述</label>
            </div>

        </div>
        <div class="modal-footer">
            <button ng-disabled="vm.saving" type="button" class="btn btn-default" ng-click="vm.cancel()">@L("Cancel")</button>
            <button type="submit" button-busy="vm.saving" busy-text="@L("SavingWithThreeDot")" class="btn btn-primary blue" ng-click="vm.save()" ng-disabled="articleCategoryCreateOrEditForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button>
        </div>
    </form>
</div>